package com.aspose.cells;

class zaof extends zbz {
   zaof(Name var1) {
      this.c(24);
      String var2 = var1.getText();
      this.b(14);
      if (var1.b() != null) {
         this.b(this.d() + (short)(var1.b().length - 2));
      }

      if (var1.n() == 0) {
         this.b(this.d() + 2);
      } else {
         this.b(this.d() + (short)(zakq.f(var1.getText()) ? 1 + var1.getText().length() : 1 + var1.getText().length() * 2));
      }

      if (var1.c() != null) {
         this.b(this.d() + (short)(zakq.f(var1.c()) ? 1 + var1.c().length() : 1 + var1.c().length() * 2));
      }

      if (var1.d() != null) {
         this.b(this.d() + (short)(zakq.f(var1.d()) ? 1 + var1.d().length() : 1 + var1.d().length() * 2));
      }

      if (var1.e() != null) {
         this.b(this.d() + (short)(zakq.f(var1.e()) ? 1 + var1.e().length() : 1 + var1.e().length() * 2));
      }

      if (var1.f() != null) {
         this.b(this.d() + (short)(zakq.f(var1.f()) ? 1 + var1.f().length() : 1 + var1.f().length() * 2));
      }

      this.c = new byte[this.d()];
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.a()), 0, this.c, 0, 2);
      this.c[2] = var1.g();
      if (var1.n() == 0) {
         this.c[3] = 1;
      } else {
         this.c[3] = (byte)var1.getText().length();
      }

      if (var1.b() != null) {
         System.arraycopy(var1.b(), 0, this.c, 4, 2);
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.getSheetIndex()), 0, this.c, 8, 2);
      this.c[10] = (byte)(var1.c() != null ? var1.c().length() : 0);
      this.c[11] = (byte)(var1.d() != null ? var1.d().length() : 0);
      this.c[12] = (byte)(var1.e() != null ? var1.e().length() : 0);
      this.c[13] = (byte)(var1.f() != null ? var1.f().length() : 0);
      byte var3 = 14;
      byte[] var4;
      int var5;
      if (var1.n() == 0) {
         this.c[15] = var1.p();
         var5 = 16;
      } else {
         var2 = var1.getText();
         if (!"".equals(var2)) {
            var4 = zakq.a(var2);
            var5 = var3 + 1;
            this.c[var3] = (byte)(var4.length == var2.length() ? 0 : 1);
            System.arraycopy(var4, 0, this.c, var5, var4.length);
            var5 += var4.length;
         } else {
            var5 = var3 + 1;
            this.c[var3] = 0;
         }
      }

      if (var1.b() != null) {
         System.arraycopy(var1.b(), 2, this.c, var5, var1.b().length - 2);
         var5 += var1.b().length - 2;
      }

      if (var1.c() != null) {
         var2 = var1.c();
         var4 = zakq.a(var2);
         this.c[var5++] = (byte)(var4.length == var2.length() ? 0 : 1);
         System.arraycopy(var4, 0, this.c, var5, var4.length);
         var5 += var4.length;
      }

      if (var1.d() != null) {
         var2 = var1.d();
         var4 = zakq.a(var2);
         this.c[var5++] = (byte)(var4.length == var2.length() ? 0 : 1);
         System.arraycopy(var4, 0, this.c, var5, var4.length);
         var5 += var4.length;
      }

      if (var1.e() != null) {
         var2 = var1.e();
         var4 = zakq.a(var2);
         this.c[var5++] = (byte)(var4.length == var2.length() ? 0 : 1);
         System.arraycopy(var4, 0, this.c, var5, var4.length);
         var5 += var4.length;
      }

      if (var1.f() != null) {
         var2 = var1.f();
         var4 = zakq.a(var2);
         this.c[var5++] = (byte)(var4.length == var2.length() ? 0 : 1);
         System.arraycopy(var4, 0, this.c, var5, var4.length);
         int var10000 = var5 + var4.length;
      }

   }
}
